<?php
if ($ticket_parent!=1) {
	header('Location: class_manager.php');
	exit;
}

	if (!($class_manager_db = mysql_connect("localhost", "class_manager", "allun33d!"))) {
		array_push($errors, "Unable to connect to database. ".mysql_error($class_manager_db));
	}
	if (!mysql_select_db("class_manager", $class_manager_db)) {
		array_push($errors, "Database is not available.");
	}
	if (!mysql_query("SET NAMES 'utf8' COLLATE 'utf8_roman_ci'", $class_manager_db)) {
		array_push($errors, "Setting charset failed.");
	}
?>